package com.sc.nft.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class EcologyPoolCreateDaoRankConfIncomeDTO {

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("收益名称")
    @NotBlank(message = "收益名称不能为空")
    private String incomeName;

    @ApiModelProperty("开始排名")
    @NotNull(message = "开始排名不能为空")
    private Integer startRank;

    @ApiModelProperty("结束排名")
    @NotNull(message = "结束排名不能为空")
    private Integer endRank;

    @ApiModelProperty("奖励系数")
    @Min(value = 0, message = "奖励系数不能小于0")
    @NotNull(message = "奖励系数不能为空")
    private Integer prizeRatio;

    @ApiModelProperty("贡献值阈值")
//    @NotNull(message = "贡献值阈值不能为空")
    private BigDecimal contributionThreshold;
}
